"""
异步简单示例
"""
import asyncio


# 异步求和
async def compute(x, y):
    print("Compute %s + %s ..." % (x, y))
    await asyncio.sleep(1.0)
    return x + y


async def print_sum(x, y):
    result = await compute(x, y)
    print("%s + %s = %s" % (x, y, result))




if __name__ == "__main__":
     asyncio.run(print_sum(1, 2))